<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"></meta>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"></meta>
    <meta name="keywords"></meta>
    <meta name="author" content=""></meta>
    <meta name="viewport"
          content="width=device-width,initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=0"></meta>
    <meta name="renderer" content="webkit"></meta>
    <meta name="HandheldFriendly" content="true"></meta>
    <style>
        html{
            font-family: SimSun, serif;}
        @page {
            size: 210mm 297mm; /*设置纸张大小:A4(210mm 297mm)、A3(297mm 420mm) 横向则反过来*/

        }

        .fl{
           float: left;
        }
        .w40{
            width:40%;
        }
        .w33{
            width:30%;
        }
        table{
            border:1px solid #e5e5e5;
            border-collapse:collapse;
        }

        .pdfRef {
          padding: 5px 1px;
          background-color: #fff;
          width:100%;
        }

        .pdfRef .title {
          text-align: center;
          font-weight: 600;
          font-size:18px;
          color: #000;
          padding-bottom:16px;
        }

        .student-con {
          margin-top: 16px;
        }

        .td {
          text-align: center;
          vertical-align: middle;
          color: #000;
          height:30px;
          max-height:30px;
          border:1px solid #e5e5e5;
          font-size:14px;
        }

        .td.head{
            height:30px;
            max-height:30px;
        }

        td.result{
            text-align: center;
            vertical-align: middle;
            border:1px solid #e5e5e5;
        }

        .fb{
            font-weight:500;
        }
        .f12{
            font-size:12px !important;
        }
        .f10{
            font-size:10px !important;
        }
        .f14{
            font-size:14px !important;
        }

    </style>
</head>
<body>

<div class="pdfRef" >
    <div class="title page-header">${data.planName}-集体成绩公示</div>
    <div >
        <div class="fl w40 f14"><span class="fb">学校名称：</span>${data.schoolName}</div>
        <div class="fl w33 f14"><span class="fb">年级：</span>${data.gradeName}</div>
        <div class="fl w33 f14"><span class="fb">分组编号：</span>${data.groupNo}</div>
    </div>
    <div style="clear:both;"></div>
    <div class="student-con">
        <table style="width: 100%;">
            <tbody>
            <tr class="group-info">
                <td class="td rb fb f12" style="width:50px" rowspan="2">班级</td>
                <td class="td rb fb f12" style="width:60px" rowspan="2">姓名</td>
                <td class="td rb fb f12" style="width:50px" rowspan="2">性别</td>
                <td class="td rb fb f12" style="width:60px" rowspan="2">学籍号</td>
                <td class="td rb fb f12" style="width:60px" colspan="${data.projectNameList?size}">项目|成绩|评分</td>
                <td class="td rb fb f12" style="width:50px" rowspan="2">总分</td>
                <#if data.showLevel >
                    <td class="td rb fb f12" style="width:50px" rowspan="2">等级</td>
                </#if>
                <td class="td rb fb f12" style="width:50px" rowspan="2">签名</td>
            </tr>
            <tr>
                <#list data.projectNameList as item>
                    <td class="td rb head fb f12" style="width:60px">
                        ${ item }
                    </td>
                </#list>
            </tr>
            <#list data.testItems as std>
                <tr class="group-info">
                    <td class="td rb">${ std.classesName }</td>
                    <td class="td rb">${ std.name }</td>
                    <#if std.sex == '1'>
                        <td class="td rb">男</td>
                    <#elseif std.sex == '2'>
                        <td class="td rb">女</td>
                    </#if>
                    <td class="td rb">${ std.studyCode }</td>
                    <#list std.testResultList as item>
                        <td class="result rb f10" >
                            <span>${item.result!item.resultType}</span>
                            <#if data.showScore >
                                <span><br></br>(${item.finalScore}分)</span>
                            </#if>
                        </td>
                    </#list>
                    <#if std.summaryResult??>
                        <td class="td rb">${ std.summaryResult.totalScore}分</td>
                        <#if data.showLevel >
                            <td class="td rb">${ std.summaryResult.totalLevel!''}</td>
                        </#if>
                        <td class="td rb"></td>
                    <#else>
                        <td class="td rb"></td>
                        <#if data.showLevel >
                            <td class="td rb"></td>
                        </#if>
                        <td class="td rb"></td>
                    </#if>
                </tr>
            </#list>
            </tbody>
        </table>
    </div>
</div>
</body>
</html>